#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#define PI 3.14
int main() {
	float r, h, C, S1, S2, V1, V2;//r:半径 h:高 C、S1:圆周长、面积 S2、V1:球面积、体积 V2:圆柱体积
	scanf("%f %f", &r, &h);
	C = 2 * PI * r;
	S1 = PI * r * r;
	S2 = 4 * S1;
	V1 = 4 * r * S1 / 3;
	V2 = S1 * h;
	printf("C1=%.2f\nSa=%.2f\nSb=%.2f\nVa=%.2f\nVb=%.2f\n\n", C, S1, S2, V1, V2);
	return 0;
}